<?php

namespace Database\Seeders;

use App\Models\System;
use Illuminate\Database\Seeder;

class SystemSeeder extends Seeder
{
  /**
   * Run the database seeds.
   *
   * @return void
   */
  public function run()
  {
    System::insert([
      [
        'key' => 'api_switch',
        'value' => 1,
        'text' => ''
      ],
      [
        'key' => 'took_lock_minutes',
        'value' => 10,
        'text' => '用户买入后锁定时长' //买币不点击完成后台语音告警
      ],
      [
        'key' => 'buy_min_coins',
        'value' => 100,
        'text' => '商家最小卖币值'
      ],
      [
        'key' => 'global_fee_ratio',
        'value' => '0.008',
        'text' => '全局佣金比'
      ],
      [
        'key' => 'global_tip',
        'value' => '2',
        'text' => '全局奖励/单笔'
      ],
      // [
      //   'key' => 'member_buy_minutes',
      //   'value' => '10',
      //   'text' => '用户抢单后锁定时长'
      // ],
      [
        'key' => 'sell_min_coins',
        'value' => 100,
        'text' => '用户最小卖币值'
      ],
      [
        'key' => 'sell_lock_minues',
        'value' => 10,
        'text' => '商户抢单后锁定时长'
      ],
      [
        'key' => 'api_order_max_rows_count',
        'value' => 10,
        'text' => '商户接口卖币最大允许条数'
      ],
      [
        'key' => 'buy_waiting_max_minutes',
        'value' => 100,
        'text' => '待接单超时'
      ],
    ]);
  }
}
